<?php  $separator = '<div class="clear-contentunit"></div>'; ?>
<?php if (isset($page_title)) {?>
	<h1 class="pagetitle">
		<?php echo $page_title;?>
		<?php if (isset($page_icon)){ ?>
			<img style="border:none;margin-bottom:1em;float:right;" src="<?php echo $page_icon;?>"></img>
		<?php } ?>
	</h1>
<?php }?>
<div class="column1-unit">
	<?php
		 if (isset($pre_content)){
			echo $pre_content;
	 		echo $separator;
		 } 
	?>
	<?php echo $page_content;?>
	<?php 
		if (isset($post_content)){
			echo $separator;
			echo $post_content;
		}
	?>
</div>
<?php 
	if (isset($scripts)){
		foreach ($scripts as $file) echo HTML::script($file), "\n";
	} 
?>
<?php if (isset($user_script)) echo $user_script;?>